package org.itboys.member.entity;

import org.itboys.member.constant.MemberConstants;
import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

/**
 * 会员基本信息
 * @author 土豪章
 *
 */
@Entity(value = "Member", noClassnameStored = true)
public class Member extends BaseLongIdEntity{
	
	private static final long serialVersionUID = 3177753808120877534L;
	
	private Integer regNametype = MemberConstants.TYPE_ONE;// 手机 邮箱 或 用户名  1:手机  2：邮箱  3：用户名
	private Long sellerId;//会员所属的店铺ID
	private String username; //用户名
	private String nickname;//昵称
	private String mobile;//手机号
	private String password;
	private Integer status = MemberConstants.TYPE_ZERO;//0:创建状态 1:基本信息填完状态 -1:冻结账号
	private Integer type = MemberConstants.TYPE_ZERO;//会员类型 0： 普通用户 ;1：高级会员；  2：金牌会员 等
	private Integer level = MemberConstants.TYPE_ZERO;//会员等级
	@Indexed
	private String thirdType = MemberConstants.THIRD_TYPE_APP;//三方登入类型 比如 微信登入 QQ登入 支付宝登入 等等
	@Indexed
	private String thirdObjId;//三方会员的ID  比如是微信登录   thirdObjId=weixinUserID
	@Indexed
	private String weixinId;//weixinconfig表的ID
	private Integer processing;//所处的装修阶段 1准备 2拆改 3水电 4泥木 5油漆 6竣工7软装 8入住
	private Long birthday;//会员生日
	private Integer sex = 0;//会员性别 0:男  1：女
	private String logo;//会员头像
	private Long regTime;//注册时间
	private String remark;//备注  用于解释冻结原因
	private Boolean readed = false;//是否阅读过招标须知 默认false 为true后不改
	private Integer score;//积分
	
	public Integer getScore() {
		return score;
	}
	public void setScore(Integer score) {
		this.score = score;
	}
	public String getWeixinId() {
		return weixinId;
	}
	public void setWeixinId(String weixinId) {
		this.weixinId = weixinId;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public Long getSellerId() {
		return sellerId;
	}
	public void setSellerId(Long sellerId) {
		this.sellerId = sellerId;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public Integer getRegNametype() {
		return regNametype;
	}
	public void setRegNametype(Integer regNametype) {
		this.regNametype = regNametype;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public String getThirdType() {
		return thirdType;
	}
	public void setThirdType(String thirdType) {
		this.thirdType = thirdType;
	}
	public String getThirdObjId() {
		return thirdObjId;
	}
	public void setThirdObjId(String thirdObjId) {
		this.thirdObjId = thirdObjId;
	}
	public Integer getProcessing() {
		return processing;
	}
	public void setProcessing(Integer processing) {
		this.processing = processing;
	}
	public Long getBirthday() {
		return birthday;
	}
	public void setBirthday(Long birthday) {
		this.birthday = birthday;
	}
	public Integer getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public String getLogo() {
		return logo;
	}
	public void setLogo(String logo) {
		this.logo = logo;
	}
	public Long getRegTime() {
		return regTime;
	}
	public void setRegTime(Long regTime) {
		this.regTime = regTime;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Boolean getReaded() {
		return readed;
	}
	public void setReaded(Boolean readed) {
		this.readed = readed;
	}
	
}
